<%@ Page Language="C#" AutoEventWireup="true" Inherits="Syrinx.Gui.AspNet.Ajax.NitobiBasePage"  
	MasterPageFile="~/App_ThemeMasters/NoStyle/popUpTwoColumnLayout.Master" %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="ScsAspNet" Namespace="Syrinx.Gui.AspNet.Ajax" TagPrefix="saj" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>

<asp:Content ContentPlaceHolderID="title" ID="content1" runat="server">
 <div class="left"><h1><asp:Label ID="ImgCacheLibLbl" runat="server" >Image Cache Library</asp:Label></h1></div>
 <swf:BizProc runat="server" ID="adl" factoryName="mediaDirectoryLibrary">
	<State entireTree="false" EditModeSessionKey="GlobalEdit" includeSelf="true" />
</swf:BizProc>
<swf:BizProc runat="server" ID="ail" FactoryName="mediaImagesLibrary">
	<ParentBizProc id="adl" fieldName="keyName" dataId="pid" />
</swf:BizProc>
</asp:Content>
<asp:Content ContentPlaceHolderID="leftContent" ID="content2" runat="server">
	<saj:Grid ID="articleList1Display" runat="server" Width="250px" Height="400px"  ShowToolbar="false" ParentBizProcIds="adl" Mode="LiveScrolling">
		<Columns>
			<ntb:KeyColumn DataField="keyName" visible="false" />
			<ntb:BoundColumn DataField="depthName" HeaderText="Name" width="200" />
			<ntb:BoundColumn DataField="fileCount" HeaderText="Num Files" width="80" />
		</Columns>
	</saj:Grid>
	
	<swf:BizProc runat="server" ID="ap" FactoryName="actionParam">
			<ParentBizProc id="adl" dataId="pid" />
	</swf:BizProc>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="content3" runat="server">
		<saj:ComplexBizObjListDisplay runat="server" ID="miImages" 
			ReadOnlyTemplate="MediaCache.Gui.AspNet.ImagesListDisplay-ImageOnly" 
			ParentBizProcIds="ail">
			<macros>
				<Entry name="navLink" type="String">imageviewer.aspx</Entry>
			</macros>
		</saj:ComplexBizObjListDisplay>
</asp:Content>

<asp:Content ContentPlaceHolderID="buttons" ID="content4" runat="server">
	<div style="float:left;">
		<saj:ActionButton runat="server" ID="updateBtn" Actions="ap.UpdateBizObj" Text="Generate From Directory" 
			AfterClientClick="window.returnValue = true;window.close();return false;" />
	</div>
</asp:Content>

